<%@page import="br.edu.curso.java.VO.IVO"%>
<%@page import="java.util.List"%>
<%@page import="org.apache.jasper.tagplugins.jstl.core.ForEach"%>
<%@page import="java.util.ArrayList"%>
<%@page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@  taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@  taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


          <div class="inner cover">
            <h1 class="cover-heading">
            	  
            	<c:out value="${titulo}" />	
            </h1>
            
<form class="form-horizontal" action="${servlet}" method="post">

<fieldset>
<legend></legend>
<div class="form-group">
	<label class="col-md-4 control-label" for="lst">O que deseja fazer?</label>
</div>
</fieldset>

<c:if test="${msgErro != null}">
	<legend></legend>
	Erro: ${msgErro}
</c:if>

<fieldset>
<legend></legend>

<!-- Select Multiple -->

<div class="form-group">

<!--  multiple="multiple"  -->
    <div class="col-md-12" >
    <select id="lstTipos" name="lstTipos" class="form-control" size="8">
    
    <!-- Utilisando JSTL -->
    <c:forEach var="obj" items="${lista}">
       	<option value="${obj.codigo}">${obj.toString()}</option>
    </c:forEach>
        
    </select>
    
    <br>
    	<button id="funcao" name="funcao" class="btn btn-success" value="incluir">Incluir</button>
   		<button id="funcao" name="funcao" class="btn btn-success" value="alterar">Alterar</button>
   		<button id="funcao" name="funcao" class="btn btn-success" value="consultar">Consultar</button>
    	<button id="funcao" name="funcao" class="btn btn-danger"  value="excluir">Excluir</button>
    
    </div>
  </div>
    
    <!--
    <div class="form-group"> 
    <div class="col-md-4" >
    
  </div>
  </div>
   -->
   
</div>

</fieldset>

<fieldset>
<legend></legend>

</fieldset>
</form>

